'use strict';
const db=uniCloud.database()
exports.main = async (event, context) => {
	//event为客户端上传的参数
	let data= await db.collection('config').get()
	if(data.data[0].password==event.toString()){
		return {
			msg:'验证通过',
			data:true
		}
	}else{
		return {
			msg:'密码错误',
			data:false
		}
	}
};
